﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EzDesk.Apps.Model.Attendance;
using EzDesk.Apps.ServiceImpl.Attendance.Repositories;
using EzDesk.Apps.ServiceImpl.Attendance.Repositories.Interface;
using EzDesk.Apps.ServiceImpl.Repositories.Mock;

namespace EzDesk.Apps.UnitTest
{

    public class Mock_ExtraShiftRepository :
        Mock_Repository<ExtraShift>, IExtraShiftRepository
    {
        public ExtraShift GetExtraShiftInfo(DateTime theDay)
        {
            return innerStorage
                .GetAll()
                .Where(p => p.StartDate <= theDay && p.EndDate >= theDay)
                .FirstOrDefault();
        }
    }
}
